public class StudentTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Student student = new Student();
		student.setId(111);
		student.setName("aaa");

		Student student2 = new Student();
		student2.setId(222);
		student2.setName("aaa");

		if (student.equals(student2)) {
			System.out.println("Equal");
		} else {
			System.out.println("Not Equal");
		}

	}

}
